<div class="row-fluid">
    <div class="span12">                    
        <div class="head">
            <div class="isw-grid"></div>
            <h1><?php echo $this->pageTitle;?></h1>
			<a href="<?php echo PIUrl::createUrl('/admincp/acticleCategory/create');?>" class="btn btn-success btn-addSlide" type="button" style="float:right;margin:4px;">Thêm mới danh mục</a>
            <div class="clear"></div>
        </div>
        <div class="block-fluid">
            <table cellpadding="0" cellspacing="0" width="100%" class="table">
                <thead>
                    <tr>                                    
                        <th style="text-align:center" width="5%">STT</th>
                        <th width="30%">Tên danh mục</th>
                        <th width="15%">Ngày tạo</th>
                        <th width="15%">Danh mục cha</th>
                        <th style="text-align:center" width="10%">Chức năng</th>                                    
                    </tr>
                </thead>
                <tbody>
				<?php $i=1; if(!empty($model)) foreach($model as $item):?>
                    <tr>                                    
                        <td style="text-align:center"><?php echo $i;?></td>
                        <td><?php echo $item->name;?></td>
                        <td><?php echo date('d/m/Y H:s:i',$item->created);?></td>
                        <td><?php echo $item->getParent();?></td>
                        <td style="text-align:center">
                            <a href="<?php echo PIUrl::createUrl('/admincp/acticleCategory/update/id/'.$item->id);?>" class="btn btn-mini btn-updateCat" type="button">Cập nhật</a>
                            <a href="<?php echo PIUrl::createUrl('/admincp/acticleCategory/delete/id/'.$item->id);?>" onclick="return confirm('Bạn thực sự muốn xóa?')" class="btn btn-mini btn-warning" type="button">Xóa</a>
					</td>
                    </tr>
				<?php $i++; endforeach;?>
                </tbody>
            </table>
        </div>
    </div>                                
</div>